package com.aolei.mallshop.product.vo.webVo;

import com.aolei.mallshop.product.entity.SkuImagesEntity;
import com.aolei.mallshop.product.entity.SkuInfoEntity;
import com.aolei.mallshop.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

@Data
public class SkuItemVo {

    SkuInfoEntity info;

    boolean hasstock =true;

    List<SkuImagesEntity> images;

    SpuInfoDescEntity desp;

    List<SpuItemAttrGroupVo> groupAttrs;

    List<SkuItemSaleAttrVo> saleAttr;

    @Data
    public static class SkuItemSaleAttrVo{
        private Long attrId;
        private String attrName;
        private List<AttrValueWithSkuIdVo> attrValues;
    }

    @Data
    public static class SpuItemAttrGroupVo{
        private String groupName;
        private List<SpuBaseAttrVo> attrs;
    }
    @Data
    public static class SpuBaseAttrVo{
        private String attrName;
        private String attrValue;
    }
    @Data
    public static class AttrValueWithSkuIdVo {
        private String attrValue;
        private String skuIds;
    }


}
